﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ViewCart.aspx.cs" Inherits="ViewCart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="gvListCart" runat="server" AutoGenerateColumns="False" 
    Width="700px" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" ShowFooter="True" 
        onrowdatabound="gvListCart_RowDataBound" 
        onrowcommand="gvListCart_RowCommand" DataKeyNames="AlbumID">
    <Columns>
        <asp:BoundField DataField="Title" HeaderText="Album" />
        <asp:TemplateField HeaderText="Số lượng">
            <ItemTemplate>
                <asp:TextBox ID="txtCount" runat="server" Text='<%# Eval("count") %>'></asp:TextBox>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:TemplateField>
        <asp:BoundField DataField="price" HeaderText="Đơn giá" />
        <asp:BoundField DataField="totalmoney" HeaderText="Thành tiền" />
        <asp:TemplateField>
            <HeaderTemplate>
                <asp:Button ID="btnDelete" runat="server" CommandName = "DeleteFormCart" CssClass="button" Text="Xóa" />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="cbxDelete"  runat="server" />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:TemplateField>
    </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
</asp:GridView>
    <asp:Button Text="Cập nhật" CssClass="button" ID="btnUpdate" runat="server" 
        onclick="btnUpdate_Click" />
</asp:Content>

